import dbConfig from '../config/sql-server'

const data = [
  {id: 0, icon: '/image/home.png', title: "首页"},
  {id: 1, icon: '/image/img.png', title: "相册"},
  {id: 2, icon: '/image/search.png', title: "搜索"},
  {id: 3, icon: '/image/my.png', title: "我的"}
]
data.map(item => {
  let sql = `insert into subject values (${val.id}, '${val.icon}', '${val.title}')`
  dbConfig(sql,[],(err,data) => {
    if (err) console.log(err)
    console.log(data)
  })
})